<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="UTF-8" />
        <title>11_节流-lodash</title>
    </head>
    <body style="height: 3000px;">
        <script src="./js/lodash.js"></script>

        <script>
            function move(){
                console.log('翻滚吧 马志强');
            }

            // document.addEventListener('mousewheel',move);

            document.addEventListener('mousewheel',_.throttle(move,1000));
        </script>
    </body>
</html>